package com.ailink.design.pattern.proxy;

import java.util.Random;

/**
 * Created by Administrator on 2018/8/6
 */
public class Car implements Movable {
    @Override
    public void move() {
        System.out.println("汽车开始移动...");
        try {
            Thread.sleep(new Random().nextInt(1000));
            System.out.println("汽车移动中...");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("汽车结束移动...");
    }
}
